<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="${pageContext.request.contextPath}/css/Style.css" type="text/css" rel="stylesheet" />
<style type="text/css">
#gg{
	margin: 0px auto;
}

	
    </style>

<link href="${pageContext.request.contextPath}/css/common.css" rel="stylesheet" type="text/css" />
<link href="${pageContext.request.contextPath}/css/register.css" rel="stylesheet" type="text/css" />
<link href="${pageContext.request.contextPath}/css/common.css" rel="stylesheet" type="text/css">
<link href="${pageContext.request.contextPath}/css/product.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-1.8.3.js"></script>
<script type="text/javascript">
	$(function(){
		$("#p").focus(function(){
			
			 $("#p").css("background-color","#FFFFCC");
		});
		
		$("#p").blur(function(){
		$("#p1").css("background-color","#D6D6FF");
			var p=$("#p").val();
			
			if(p==''){
				var d1=$("#d1").html("<font color='red'>密码不能为空!</font>");
				return false;
			}
		});
		
		
		$("#p1").focus(function(){
			 $("#p1").css("background-color","#FFFFCC");
		
		});
		
		$("#p1").blur(function(){
		$("#p1").css("background-color","#D6D6FF");
			var p=$("#p").val();
			var p1=$("#p1").val();
			if(p1==''){
				var d2=$("#d2").html("<font color='red'>密码不能为空!</font>");
				return false;
			}
			if(p!=p1){
				alert("密码不一致!");
				return false;
			}
		});
		$("#sub").click(function(){
			var p=$("#p").val();
			var p1=$("#p1").val();
			if(p1==''||p==''|| p1!=p){
				
				return false;
			}
		});
	})
	
 </script>
</head>

<body>
<div class="container header">
		<div class="span5">
			<div class="logo">
				<a href="http://localhost:8080/mango/"> 
				<img src="${pageContext.request.contextPath}/image/logo.gif" alt="Mango商城"/>
				</a>
			</div>
		</div>
		<div class="span9">
			<div class="headerAd">
				<img src="${pageContext.request.contextPath}/image/header.jpg"
					width="320" height="50" alt="正品保障" title="正品保障">
			</div>
		</div>
		<%@ include file="header.jsp" %>
		<%@ include file="menu.jsp" %>
	</div>
<form name="Form1" method="post" action="${pageContext.request.contextPath}/user_yess.action" id="Form1">
	<input type="hidden" name="uid" id="uid" value="<s:property value="model.uid"/>"/>
	<table width="69%"  height="88" border="1" align="center" bgcolor="#eeeeee" id="gg">
		<tr>
			<td colspan=3  class="ta_01" align="center" height="84" bgcolor="#afd1f3">
			<strong><h2>找回密码</h2></strong>
			<font color="red"><s:actionerror/></font>
			</td>
		</tr>
	
		<tr >
			<td width="20%" height="45" align="center" valign="left" >
				<span class="Style1"><font color=#bbbbbb;>新&nbsp;&nbsp;&nbsp;&nbsp;密&nbsp;&nbsp;&nbsp;&nbsp;码:</font></span>
				
				<input type="text" id="p" name="password" value=""/><div id="d1"></div>
			</td>
			
			
		</tr>
		<tr id="tr3">
			<td width="20%" height="45" align="center" valign="left" >
				<span class="Style1"> <font color=#bbbbbb;>再次输入密码:</font></span>
				<input type="text" id="p1" name="password1" value=""/><div id="d2"></div>
			</td>
			
			<%-- <input type="hidden" name="username" value="<s:property value="model.username"/>"/>
			<input type="hidden" name="name" value="<s:property value="model.name"/>"/>
			<input type="hidden" name="phone" value="<s:property value="model.phone"/>"/>
			<input type="hidden" name="email" value="<s:property value="model.email"/>"/>
			<input type="hidden" name="sex" value="<s:property value="model.sex"/>"/>
			<input type="hidden" name="addr" value="<s:property value="model.addr"/>"/>
			<input type="hidden" name="code" value="<s:property value="model.code"/>"/>
			<input type="hidden" name="state" value="<s:property value="model.state"/>"/> --%>
		</tr>
		
		<tr>
		<td width="20%" height="3" align="center" valign="left" >
			<input type="submit" width="20" value="下一步" id="sub"/>&nbsp;&nbsp;
			<input type="reset" value="重置"/>
		</td>
		</tr>
		
	</table>
	
	</form>
	
</body>

</html>